package yl.hs.bmipfull.pojo.finance;

import lombok.Data;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;


@DBTable(disName = "采购运费结算", mapCode = "receipt_freight_settle_main")
@Data
public class ReceiptFreightSettleMainEntity extends BaseEntity {
    private Long id;
    @DBField(disName = "编号", mapCode = "sn", isSerialNumber = true, snPrefix = "YFJS")
    private String sn;
    @DBField(disName = "结算年份", mapCode = "year")
    private int year;
    @DBField(disName = "结算月份", mapCode = "month")
    private int month;
    @DBField(disName = "采购开始时间", mapCode = "startTime")
    private Date startTime;
    @DBField(disName = "采购截至时间", mapCode = "endTime")
    private Date endTime;
    @DBField(disName = "结算时间", mapCode = "settleTime")
    private Date settleTime;
    @DBField(disName = "上期结算金额", mapCode = "previousAmount")
    private BigDecimal previousAmount = BigDecimal.ZERO;
    @DBField(disName = "本期结算金额", mapCode = "currentAmount")
    private BigDecimal currentAmount = BigDecimal.ZERO;
    @DBField(disName = "累计结算金额", mapCode = "totalAmount")
    private BigDecimal totalAmount = BigDecimal.ZERO;
    @DBField(disName = "本期付款金额", mapCode = "currentPayedAmount")
    private BigDecimal currentPayedAmount = BigDecimal.ZERO;
    @DBField(disName = "累计付款金额", mapCode = "totalPayedAmount")
    private BigDecimal totalPayedAmount = BigDecimal.ZERO;
    @DBField(disName = "本期采购车数", mapCode = "currentOrderCount")
    private int currentOrderCount;
    @DBField(disName = "累计采购车数", mapCode = "totalOrderCount")
    private int totalOrderCount;
    @DBField(disName = "备注", mapCode = "remark")
    private String remark;
    @DBField(disName = "承运商SN", mapCode = "transTeam")
    private String carrierSn;
    @DBField(disName = "承运商名称", mapCode = "carrierName")
    private String carrierName;
    private short state;
    private String tags;
    private String organizationCode;


}
